package cn.lzy.ioc;

import cn.lzy.ioc.entity.Cat;
import cn.lzy.ioc.entity.Dog;
import cn.lzy.ioc.entity.User;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Description 属性注入-普通属性注入
 * @Author lzy
 * @Date 2023/9/9 14:55
 * @Version
 **/
public class TestDemo03SimpleInject {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("beans_property_inject.xml");
        User user = ctx.getBean(User.class);
        System.out.println(user);
    }
}
